<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>怪奇鹅尬脑训练1-1</title>
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name = "format-detection" content="telephone = no" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1" />
<link href="__PUBLICGAME__/css/animate.css" rel="stylesheet" type="text/css">
<link href="__PUBLICGAME__/css/common.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="__PUBLICGAME__/css/stms.css"/>

    <script>
        var ROOT = window.location.origin+'__PUBLICGAME__/'
        var HOST = window.location.origin;

    </script>
<script language="javascript" type="text/javascript" src="__PUBLICGAME__/js/jquery.1.7.2.min.js"></script>
<script type="text/javascript" src="__PUBLICGAME__/js/stms_game.js"></script>

</head>  
<body>  
  
    <div class="main">
    

        <div class="right_box stms_right">
        
            <!--游戏规则提示 (点击游戏规则游戏开始)-->
            <div class="game_alert game_rule" id="btn_star">
            	<div class="in">
                    <strong class="title">游戏规则</strong>
                    <p class="content">画面中有笑脸翻出<br>请找出翻转出的笑脸</p>
                    <span class="ok">确定</span>
                </div>
            </div>
            
            
            <!--弹出提示-->
            <div class="popads" id="ad0">
            	<img src="__PUBLICGAME__/images/stms/0.gif">
                <a class="pro_link" href="http://dct.zoosnet.net/LR/Chatpre.aspx?id=DCT13857509&lng=cn"></a>
            	<span class="pro_ok"></span>
            </div>

        
            
            <!--最终完成提示 -->
            <div class="game_alert finish_pop">
            	<div class="in">
                	<strong class="title">训练完成</strong>
                    <p class="content finish_con"></p>
                    <span class="ok finish_ok">确定</span>
                </div>
            </div>
            
            <div class="big_gold"><img src="__PUBLICGAME__/images/stms/big_gold.png"></div>
            
           
            <!--关卡数 -->
            <div class="game_level">
                关卡：<span class="game_level_curr"></span>/<span class="game_level_all"></span>
            </div>
            <div class="game_score">
                积分：<span class="game_score_curr">0</span>
            </div>
            
            <!--退出 -->
            <a class="user_exit" href=""></a>
            
            
        	<!-- 主体 star -->
       		<div class="con_wrap con_wrap_2 wrap_prepare">
 
                <div class="game_area">
                    <div class="game_item_wrap"></div>
                </div>
                
               <!--提示说明 -->
         	   <div class="game_tips">找出刚刚出现的 <strong class="num_total"></strong>个笑脸</div>
               
            </div>
            <!-- 主体 end -->
            
            
            
        </div>

    </div>

<script>

    $(function () {
        function pushHistory() {
            var state = {
                title: "title",
                url: location.href,
                time:Math.round(new Date().getTime()/1000)
            };
            window.history.pushState(state, "title", "#");
        }

        pushHistory();
        var bool=false;
        setTimeout(function(){
            bool=true;
        },1500);
        window.addEventListener("popstate", function(e) {
            alert(11)
            if(bool)
            {

                console.log(window.history.state.url)
                if(window.history.state.url.indexOf('Index/index') > 0){
                }

            }
            pushHistory();

        }, false);
    });

</script>

</body>
</html>